﻿// <copyright file="Colors.cs" company="BerlinSoft">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>Wernfried Schwenkner</author>
// <email>wernfried@schwenkner.de</email>
// <date>2009-10-21</date>
// <summary>
// Contains the Colors class.
// </summary>

using System.Drawing;
using System.Xml.Serialization;

namespace SenseTimeTracker.Misc
{
	/// <summary>
	/// Class implements the colors collection
	/// </summary>
	public class Colors
	{
		/// <summary>
		/// Field contains the color for finished tasks
		/// </summary>
		private TheColor colorFinishedTasks = new TheColor(Color.DarkGreen);

		/// <summary>
		/// Field contains the color for overbooked tasks
		/// </summary>
		private TheColor colorOverbookedTasks = new TheColor(Color.Salmon);

		/// <summary>
		/// Field contains the color for active tasks
		/// </summary>
		private TheColor colorActiveTasks = new TheColor(Color.White);

		/// <summary>
		/// Gets or sets the color for finished tasks
		/// </summary>
		[XmlElement("FinishedTask")]
		public TheColor FinishedTasks
		{
			get { return colorFinishedTasks; }
			set { colorFinishedTasks = value; }
		}

		/// <summary>
		/// Gets or sets the color for overbooked tasks
		/// </summary>
		[XmlElement("OverbookedTask")]
		public TheColor OverbookedTasks
		{
			get { return colorOverbookedTasks; }
			set { colorOverbookedTasks = value; }
		}

		/// <summary>
		/// Gets or sets the color for active tasks
		/// </summary>
		[XmlElement("ActiveTask")]
		public TheColor ActiveTasks
		{
			get { return colorActiveTasks; }
			set { colorActiveTasks = value; }
		}
	}
}
